package dp.structual.decorator;

import dp.structual.decorator.coffee.Coffee;
import dp.structual.decorator.coffee.SimpleCoffee;
import dp.structual.decorator.coffee.decorator.WithMilk;
import dp.structual.decorator.coffee.decorator.WithSugar;

public class Example {

    public static void main(String[] args) {
        coffee();
    }

    static void coffee() {
        Coffee coffee = new WithMilk(new WithSugar(new SimpleCoffee()));
        System.out.println("cost: " + coffee.getCost());
        System.out.println("description: " + coffee.getDescription());
    }
}
